package com.enterprise.projectManager;

import com.enterprise.projectManager.model.Project;
import org.springframework.security.core.parameters.P;

import java.lang.reflect.Field;

public class Search {

    public boolean areAllFieldsNull(Object entity) throws IllegalAccessException {
        Class<?> clazz = entity.getClass();

        for (Field field : clazz.getDeclaredFields()) {
            field.setAccessible(true);
            Object value = field.get(entity);
            if (value != null) {
                System.out.println(value);
            }
        }

        return true; // 所有字段都为空，返回 true
    }
    public static void main(String[] args) {
        System.out.println("C"+1);
    }
}
